package com.nicholas.exampleweb.controller;

import com.nicholas.exampleweb.model.User;
import com.nicholas.exampleweb.util.DBManager;
import com.nicholas.week1.annotation.Controller;
import com.nicholas.week1.annotation.URL;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.HttpMethod;
import java.util.List;

/**
 * 输出 “Hello,World” Controller
 */
@Controller
@URL("/hello")
public class HelloWorldController {

    @URL(value = "/world",method = HttpMethod.GET) // /hello/world -> HelloWorldController
    public String world(HttpServletRequest request, HttpServletResponse response) throws Throwable {
        return "/index.jsp";
    }
}
